package com.kingyea.mobilepolice.orgrole.service;

import com.kingyea.mobilepolice.orgrole.bean.OrgRole;
import com.kingyea.mobilepolice.orgrole.bean.OrgRoleCondition;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description OrgRole 接口
 * @date Created in 2018-04-26 15:25:13
 */
public interface OrgRoleService {

    /**
     * 列表
     *
     * @param condition
     * @return
     */
    List<OrgRole> search(OrgRoleCondition condition);

    /**
     * 删除
     *
     * @param orgSerialNo
     * @return
     */
    Boolean deleteByOrgSerialNo(String orgSerialNo);

    /**
     * 添加
     *
     * @param orgRole
     * @return
     */
    Boolean save(OrgRole orgRole);

    /**
     * @Description: 批量添加
     * @Param: [orgRoles]
     * @return: java.lang.Boolean
     * @Author: cxc
     * @Date: 2018.04.26 18:06
     */
    Boolean batchSave(List<OrgRole> orgRoles);

}
